<?php

/**
 * Universidad form.
 *
 * @package    auip
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */

class UniversidadForm extends BaseUniversidadForm
{
  public function configure()
  {
        $this->widgetSchema['nombre'] = new sfWidgetFormTextarea(array(), array('class'=>'nombre','rows' => '1', 'cols' => '90'));
        $this->widgetSchema['pais_id'] = new sfWidgetFormDoctrineChoice(array('model' => 'Pais', 'add_empty' => 'Seleccione el País', 'order_by' => array('nombre','asc')));
        $this->widgetSchema['region_id'] = new sfWidgetFormDoctrineDependentSelect( array('model' => 'Region', 'depends'=>'Pais', 'add_empty'=>'Seleccione la Región', 'ref_method' => 'getPaisId', 'order_by' => array('nombre','asc'), 'ajax'=> true));

  }
}
